﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AddRoom.aspx.cs" Inherits="cs499.Locations.AddRoom" %>
<%@ MasterType VirtualPath="~/Site.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="NavOptions" runat="server">
    <asp:Button ID="OKButton" runat="server" Height="33px" OnClick="OKButton_Click" OnClientClick="" Text="Add" UseSubmitBehavior="False" Width="137px" />
    <asp:Button ID="CancelButton" runat="server" OnClick="CancelButton_Click" Text="Cancel" Width="133px" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="FeaturedContent" runat="server">
    <section class="featured">
        <div class="content-wrapper">
            <h3><asp:Label ID="AddRoomLabel" runat="server" Text=""></asp:Label></h3>
        </div>
    </section>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Table ID="Table1" runat="server" GridLines="Both" Height="78px" Width="559px">
        <asp:TableRow ID="TableRow1" runat="server" Height="20px" VerticalAlign="Middle">
            <asp:TableCell ID="TableCell1" runat="server" Width="25px">
                <asp:Label ID="Label1" runat="server" Text="Building"></asp:Label></asp:TableCell>
            <asp:TableCell ID="TableCell2" runat="server">
                <asp:Label ID="Label2" runat="server" Text="Room Number"></asp:Label></asp:TableCell>
            <asp:TableCell ID="TableCell3" runat="server">
                <asp:Label ID="Label3" runat="server" Text="Room Capacity"></asp:Label></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow2" runat="server" Height="30px" VerticalAlign="Top">
            <asp:TableCell ID="TableCell6" runat="server" Width="50px">
                <asp:DropDownList ID="DropDownListofbuildings" runat="server" DataSourceID="EntityDataSourceBuildings" DataTextField="Name" DataValueField="Id" Width="172px"></asp:DropDownList></asp:TableCell>
            <asp:TableCell ID="TableCell7" runat="server">
                <asp:TextBox ID="inputroomnumber" runat="server" Width="60px"></asp:TextBox></asp:TableCell>
            <asp:TableCell ID="TableCell8" runat="server">
                <asp:TextBox ID="inputroomcapacity" runat="server" Width="60px"></asp:TextBox></asp:TableCell>
        </asp:TableRow>
    </asp:Table>
    
    <asp:EntityDataSource ID="EntityDataSourceBuildings" runat="server" ConnectionString="name=Model1Container" DefaultContainerName="Model1Container" EntitySetName="Places" EntityTypeFilter="Building" Where="it.Department.Id=@newparameter">
        <WhereParameters>
            <asp:SessionParameter DbType="Int32" DefaultValue="-1" Name="newparameter" SessionField="CurrentDepartmentId" />
        </WhereParameters>
    </asp:EntityDataSource>
</asp:Content>
